package com.group7.mall.req;

import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class UserGoodsPageRequest {

    private String userOpenId;

    private Long pageNo = 1L;

    private Long pageSize = 10L;

    private String sortRule = "asc";

    private String sortField = "click_count";

    private Long pageStart;

    private Integer goodsClass = null;

    private Integer storeId = null;

    private String keyWord = null;

    public Long getPageNo() {
        if(pageNo < 1L || pageNo == null) {
            return 1L;
        }
        return pageNo;
    }

    public Long getPageSize() {
        if(pageSize < 1L) {
            return 10L;
        }
        return pageSize;
    }

}
